﻿using Prism.Ioc;
using Prism.Unity;
using System.Configuration;
using System.Data;
using System.Windows;

namespace PrismInitialize
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        public App()
        {
            // 当非App启动的时候，可以使用PrismBootstrapper来处理
            //new Startup().Run();
        }

        /// <summary>
        /// 提供主窗口的对象
        /// </summary>
        /// <returns></returns>
        protected override Window CreateShell()
        {
            return new MainWindow() { Title = "Prism Start" };
        }

        /// <summary>
        /// 业务中所有需要注入的对象，在这个方法里注册 
        /// </summary>
        /// <param name="containerRegistry"></param>
        /// <exception cref="NotImplementedException"></exception>
        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }
    }

}
